package com.eddie.community.service;

import com.eddie.community.util.RedisKeyUtil;
import org.springframework.dao.DataAccessException;
import org.springframework.data.redis.core.RedisOperations;
import org.springframework.data.redis.core.SessionCallback;

/**
 * Description:点赞业务
 * Date: 2021/3/1 0001 21:39
 * Author: Eddie.Zhan
 * Email: eddie_zhan@yeah.net
 */
public interface LikeService {

    // 点赞
     void like(int userId, int entityType, int entityId, int entityUserId) ;

    // 查询某实体点赞的数量
     long findEntityLikeCount(int entityType, int entityId);

    // 查询某人对某实体的点赞状态
     int findEntityLikeStatus(int userId, int entityType, int entityId) ;

    // 查询某个用户获得的赞
     int findUserLikeCount(int userId) ;
}
